import http from '../utils/http'

export const login = (user)=>http.post('user/login',user)
export const register = (user)=>http.post('user/register',user)

export const getUserList = (params) =>
  http.get(`user/getUserList`, { params });
export const resetPassword =(userId,password)=> http.post(`user/resetPassword/${userId}/${password}`)
export const updateType =(userId,type)=> http.post(`user/updateType/${userId}/${type}`)
export const deleteUser =(userId)=> http.delete(`user/deleteUser/${userId}`)
